package com.kiln.juxingqs.api.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

data class TradeGoodsDetail(
    val goods_dict: GoodsDict,
    val user_dict: UserDict,
    val detail_list: List<GoodsDetail.Detail>,
    val banner_list: List<GoodsDetail.Banner>,
) {
    @Parcelize
    data class GoodsDict(
        val create_time: String,
        val fees: Double,
        val goods_code: String,
        val goods_id: Int,
        val goods_img: String,
        val high_price: String,
        val low_price: String,
        val name: String,
        val price: String,
        val price_pf: String,
        val priority: Int,
        val sales: String,
        val status: Int,
        val stock_c: String,
        val stock_t: String,
        val tj_status: Int,//是否显示 特价、优惠券 1不显示 0显示

        val trade_price: String //交易总额
    ) : Parcelable

    @Parcelize
    data class UserDict(
        val goods_id: Int,
        val id: Int,
        val s_borrow_num: Int,
        val s_coupon_num: String?="",
        val s_discount_num: String?="",
        val s_release_num: Int,
        val s_sell_num: Int,
        val s_take_num: Int,
        val s_take_num2: Int,
        val s_release_num_dj: String?="", //冻结可交易数量
        val user_id: String?="",
        val user_status: Int
    ) : Parcelable
}

